<?xml version="1.0" encoding="UTF-8"?>
<definitions id="definitions"
  xmlns="http://www.omg.org/spec/BPMN/20100524/MODEL"
  xmlns:camunda="http://camunda.org/schema/1.0/bpmn"
  xmlns:fox="http://www.camunda.com/fox"
  targetNamespace="Examples">

  <process id="failingMultiInstance" isExecutable="true">

    <startEvent id="theStart" />
    <sequenceFlow id="flow1" sourceRef="theStart" targetRef="task" />

     <userTask id="task">
      <extensionElements>
        <camunda:executionListener event="start" class="org.camunda.bpm.engine.test.cmd.FailingExecutionListener" />
      </extensionElements>
      <multiInstanceLoopCharacteristics isSequential="true" camunda:asyncBefore="true">
        <extensionElements>
          <camunda:failedJobRetryTimeCycle>R5/PT5M</camunda:failedJobRetryTimeCycle>
        </extensionElements>
        <loopCardinality>5</loopCardinality>
      </multiInstanceLoopCharacteristics>
    </userTask>
        
    <sequenceFlow id="flow2" sourceRef="task" targetRef="theEnd" />
    
    <endEvent id="theEnd" />

  </process>
  
</definitions>